home *** CD-ROM | disk | FTP | other *** search
/ Shareware Extravaganza - Disc 1 / ShareWare Extravaganza 1 of 4 (The Ultimate Shareware Company).iso / sblaster / break.zip / BRK.DOC < prev    next >
Text File  |  1985-11-30  |  4KB  |  79 lines

  1.                     CTRL-BRK Control Programs  -  Version 1.0
  2.  
  3.                                Copyright 1985 by
  4.  
  5.                                  Solid Systems
  6.                               20 Dinwiddie Place
  7.                             Newport News, VA. 23602
  8.  
  9.  
  10. Neither Solid Systems, nor Everett C. Johnson, nor the SYSOP of any public BBS,
  11. nor any other person handling or distributing this program free of charge makes
  12. any warranty as to the fitness of these programs or this documentation for any
  13. purpose.  The user of these programs accepts total responsibility for their use
  14. and for any results of using them.
  15.  
  16. Any person is free to copy and or distribute these programs and documentation
  17. as long as no fee is charged for doing so.
  18.  
  19.  
  20.                                ---   +++   ---
  21.  
  22.  
  23. The programs BRK.DRV and BRK.COM provide the user with the ability to decide if
  24. and when keyboard break is operative, or ignored.  (For the purposes of this
  25. document, "keyboard break" is defined to be the abnormat termination of a
  26. process by pressing either the Ctrl-Break or the Ctrl-C key combinations.)  The
  27. user can cause the system to boot with keyboard break disabled thus preventing
  28. his AUTOEXEC.BAT file from being interupted.
  29.  
  30. BRK.DRV is a device driver which creates a character oriented device by the
  31. name CTRL-BRK.  (Other character oriented devices are LPT1, COM1, CON, etc.)
  32. This device driver is installed by placing the line DEVICE=BRK.DRV in a file
  33. named CONFIG.SYS in the root directory of the disk drive from which you will be
  34. booting your system.  The same directory must contain the file BRK.DRV.  It is
  35. suggested that DEVICE=BRK.DRV be one of the first lines in your CONFIG.SYS
  36. file. The system will then come up with keyboard break disabled.  This means
  37. that the system will totally ignore the Ctrl-Break and Ctrl-C key combinations.
  38.  
  39. A device named CTRL-BRK will then exist.  Any attempt to read from this device
  40. (such as TYPE CTRL-BRK, or COPY CTRL-BRK CON) will cause DOS to display a Read
  41. Failure diagnostic. If you write to this device (COPY CON CTRL-BRK) all
  42. characters written will be ignored except for 'N'and 'n' which will cause
  43. keyboard break to be enabled, and 'F' and 'f' which will cause keyboard break
  44. to be disabled.  Thus writing 'ON' or 'OFF' to the device CTRL-BRK will do what
  45. you think they would do.
  46.  
  47. Writing to the device is a convenient way to turn keyboard break on and off
  48. from within a program, but not too easy to use from the keyboard or from a
  49. batch file.  That is why the program BRK.COM is provided. If the device driver
  50. has been installed, entering BRK ON will enable keyboard break BRK OFF will
  51. disenable keyboard break. If the device driver has not been installed, or
  52. nothing follows the BRK, an error message will be issued.
  53.  
  54. More simply Put:
  55.  
  56.    1. Place the line DEVICE=BRK.DRV in a file named CONFIG.SYS (along with
  57.       whatever else you may already have in that file.)
  58.  
  59.    2. Place the files CONFIG.SYS and BRK.DRV in the root directory of the disk
  60.       from which you will boot your system.  The system will come up in a such a
  61.       way that it ignores keyboard break.
  62.  
  63.    3. After the system boots, you can use the program BRK.COM to turn keyboard
  64.       break on or off (enable or disable it) by entering BRK ON or BRK OFF.  You
  65.       may use upper or lower case letters.
  66.  
  67.  
  68. LIMITATION:  Using the t option of PKLOAD (Part of PROKEY 4.0) will cause 
  69.              Ctrl-C to be detected by DOS at all times.  Other resident
  70.              programs may have the save effect.
  71.  
  72. Sorry the documentation is not more complete, or more clearly written, but this
  73. is all the time I had to spend on a free "product" which I wrote because a user
  74. on Gene Plantz's BBS (312 882-4227) wanted this capability. I hope you find
  75. these programs useful.
  76.  
  77.  
  78. Everett C. Johnson
  79.